-
-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: multi storage providers support #350
base: master
Are you sure you want to change the base?
Conversation
685fec7
to
6873672
Compare
Pull Request Test Coverage Report for Build 5642282907Warning: This coverage report may be inaccurate.We've detected an issue with your CI configuration that might affect the accuracy of this pull request's coverage report.
💛 - Coveralls |
6873672
to
876930f
Compare
I don't wanna stress but just saying: having this merged would be 0 to 100 awesome <3 |
@fenos wow! |
I felt in love with R2 and supabase at the same time, having this PR would be too much hype for me! |
Just saying, for those searching: It's already possible. This PR is nice because it is syntactic sugar -> simplifying what's there but essentially it's already simple, it just isn't covered in the Docs really well: See here
|
hi @fenos any good progress ? :) |
Would love to see updates on this |
Hello Guys! I was very busy with some clean-ups on other parts of the code base! |
hi can i use cloudflare R2 |
Bump |
Another BUMP for R2 |
Possibly a dumb question... but would this feature be supported on Supabase hosted projects? I don't wanna have to deal with self hosting the whole stack but it would be real nice to switch the storage "backend" to my own R2 buckets where I can pay for my storage and not worry about bandwidth fees on Supabase (thanks Cloudflare). Currently I use the S3 API directly for my R2 access but would be nice to take advantage of the Supabase API wrappers and the ability to manage file metadata in a DB schema (i already do this manually...) |
Any ETA for this? |
What kind of change does this PR introduce?
feature
What is the new behavior?
Support Multi-Storage providers for different tenants
Additional context
Currently, Storage API can use a single underline S3 compatible storage shared across all tenants.
This PR allows supporting any number of S3 compatible storages by specifying at the tenant level which provider they should be using.
Example:
Each tenant will now have an
s3_provider
field which determines the desired provider.For single tenants setup, multiple storages are ignored and only the
default
will be usedDeprecations
Envs deprecated with backward compatibility
PGRST_JWT_SECRET
in favor ofAUTH_JWT_SECRET
PGRST_JWT_ALGORITHM
in favor ofAUTH_JWT_ALGORITHM
GLOBAL_S3_ENDPOINT
useSTORAGE_S3_PROVIDER_<name>_ENDPOINT
insteadGLOBAL_FORCE_PATH_STYLE
useSTORAGE_S3_PROVIDER_<name>_FORCE_PATH_STYLE
insteadGLOBAL_S3_BUCKET
useSTORAGE_S3_BUCKET